package study.saas.order.service;

import study.saas.common.viewmodel.ApiResultV2;
import study.saas.order.entity.Orders;
import study.saas.order.service.model.OrdersMakeDTO;
import study.saas.order.service.model.OrdersSearchDTO;

/**
 * @author zxx
 */
public interface OrdersFacade {

    /**
     * 下单
     */
    ApiResultV2 make(OrdersMakeDTO make);

    ApiResultV2 getByUserName(String userName);

    ApiResultV2 getByCommodityName(String commodityName);

    ApiResultV2 search(OrdersSearchDTO search);
}
